//
//  UIButton+Extension.swift
//  RE_BasePrivateProject
//
//  Created by mac on 2018/10/08.
//  Copyright © 2018年 Regina. All rights reserved.
//

import UIKit

extension UIButton {
    
    
    
    
//   public convenience init(_ title: String, titleColor: UIColor = UIColor.white, font: UIFont = REFontRegular(15)) {
//        self.init(frame: CGRect.zero)
//        setTitle(title, for: .normal)
//        setTitle(title, for: .selected)
//        setTitleColor(titleColor, for: .normal)
//        setTitleColor(titleColor, for: .selected)
//        setTitleColor(titleColor, for: .highlighted)
//        titleLabel?.font = font
//    }
//    
//    public class func systemSureButton(_ title: String, originY: CGFloat = 0) -> UIButton {
//        let btn: UIButton = UIButton(frame: CGRect(x: 38, y: originY, width: REScreenWidth - 76, height: 49))
//        btn.setTitleColor(UIColor.white, for: .normal)
//        btn.setBackgroundImage(UIImage(named: "RE_base_systemBtn"), for: .normal)
//        btn.setTitleColor(REHexRGBAlpha(0xffffff, 0.3), for: .disabled)
//        btn.setTitle(title, for: .normal)
//        btn.titleLabel?.font = REFontRegular(18)
////        btn.backgroundColor = RESystemColor()
////        btn.layer.cornerRadius = 24.5
////        btn.layer.maREsToBounds = true
//        return btn
//    }
//    
//    public convenience init(_ confirmTitle: String,_ unEnabledTitle: String, font: UIFont = REFontRegular(12), _ titleColor: UIColor = .white,_ unEnabledTitleColor: UIColor = REHexRGB(0x888888),_ backgroundImg:UIImage = UIImage(color: REHexRGB(0xff5893))!  ,_ unEnabledbackgroundImg: UIImage = UIImage(color: .clear)!) {
//        self.init(frame: .zero)
//        self.titleLabel?.font = font
//        setTitle(confirmTitle, for: .normal)
//        setTitle(confirmTitle, for: .selected)
//        setTitle(unEnabledTitle, for: .disabled)
//
//        setTitleColor(titleColor, for: .normal)
//        setTitleColor(titleColor, for: .selected)
//        setTitleColor(titleColor, for: .highlighted)
//        setTitleColor(unEnabledTitleColor, for: .disabled)
//
//        setBackgroundImage(backgroundImg, for: .normal)
//        setBackgroundImage(backgroundImg, for: .selected)
//        setBackgroundImage(backgroundImg, for: .highlighted)
//        setBackgroundImage(unEnabledbackgroundImg, for: .disabled)
//
//        layer.cornerRadius = 5
//        layer.maREsToBounds = true
//    }
//    
//    public convenience init(_ image: UIImage) {
//        self.init(frame: .zero)
//        setImage(image, for: .normal)
//        setImage(image, for: .highlighted)
//        setImage(image, for: .selected)
//    }
//    
//    public convenience init(_ image: UIImage,selectedImg:UIImage) {
//        self.init(frame: .zero)
//        setImage(image, for: .normal)
//        setImage(image, for: .highlighted)
//        setImage(selectedImg, for: .selected)
//    }
//    
//    public convenience init(_ title: String,image:UIImage?) {
//        self.init(frame: .zero)
//        setTitle(title, for: .normal)
//        setTitle(title, for: .highlighted)
//        setTitle(title, for: .selected)
//        setImage(image, for: .normal)
//        setImage(image, for: .highlighted)
//        setImage(image, for: .selected)
//    }
//

}
